﻿@using System.Web.UI.WebControls
@using Dogshow.Model
@using DevExpress.Web.Mvc.UI

@Html.DevExpress().GridView(
    s =>
    {
        s.Name = "gvKinoloskaDrustva";
        s.Caption = "Kinološka društva";
        s.KeyFieldName = "Id";
        s.SettingsBehavior.AllowFocusedRow = true;
        s.SettingsBehavior.EnableRowHotTrack = true;
        s.Width = Unit.Pixel(300);
        s.Columns.Add("Id").Visible = false;
        s.Columns.Add("Naziv", "Naziv");
        s.Columns.Add("Mesto.Naziv", "Mesto").Width = Unit.Pixel(120);
        s.CallbackRouteValues = new { Controller = "KinoloskaDrustva", Action = "VratiKinoloskaDrustva" };
        s.SettingsPager.PageSize = 25;
        s.Settings.ShowFilterRow = true;
        s.ClientSideEvents.FocusedRowChanged = "onFocusedRowChanged";
        s.SettingsLoadingPanel.Text = "Učtavam podatke...";
    }).Bind(ViewBag.KinoloskaDrustva).GetHtml()

